from django.apps import AppConfig
from django.db.models.signals import post_migrate


class MainConfig(AppConfig):
    default_auto_field = "django.db.models.BigAutoField"
    name = "main"

    # Setup custom groups
    def ready(self):
        from main.callbacks import post_migrate_callback
        post_migrate.connect(post_migrate_callback, sender=self)
